package com.cloud.shopping.goods.service;

import com.cloud.shopping.goods.model.Product;
import com.cloud.shopping.goods.model.Spu;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author John.zhang
 * @since 2020-12-28
 */
public interface SpuService extends IService<Spu> {

    /**
     * 产品保存
     * @param product product
     */
     void saveProduct(Product product);

    /**
     * 根据Id获取产品信息
     * @param id id
     * @return Product
     */
    Product findBySupId(String id);
}
